package 周六;

public class StringBuilderDemo {
    public static void main(String[] args) {
        String str="好好学习Java";
        StringBuilder builder=new StringBuilder(str);
        System.out.println(builder);
        builder.append(",为了赚钱");
        System.out.println(builder);

        builder.delete(8,100);
        System.out.println(builder);

        builder.replace(4,8,"计算机,是为了有好的将来");
        System.out.println(builder);

        builder.insert(0, "我来到达内,");
        System.out.println(builder);













    }
}
